<template>
	<view>
        <u-notice-bar :color="item.style.titleColor" :bgColor="item.style.bgColor" :text="item.params.title" mode="link" @click="jump(item.data.linkpath)"></u-notice-bar>
	</view>
</template>

<script>
    import { toUrl } from '@/wlkutils/tools';
	export default {
		name:"wlk-notice",
		data() {
			return {
				
			};
		},
        //属性
        props: {
            item: {
                type: Object,
                default: ()=> {
                    return []
                }
            }
        },
        created:function(e){

        },
        methods: {
            jump(path){
                console.log(this.item)
                toUrl(path);
            }
        }
	}
</script>

<style lang="scss" scoped>

</style>